import request from "@/request/index.js"

//新增或者修改address
export function mergeMallAddress(address){
	let url = '/api/address/mall'
	let data = {...address,Loading:true}
	return request.post(url,data)
}

//商城信息
export function mallAddressInfo(id){
	let url = '/api/address/mall/info'
	let params = {id}
	return request.get(url,{params})
}

//获取商城地址
export function getMallAddress(){
	let url = '/api/address/mall'
	return request.get(url)
}

//删除商城地址
export function deleteMallAddress(id){
	let url = '/api/address/mall/delete'
	let data = {id}
	return request.post(url,data)
}